<include file="Public:header" />

    <h3 class="title"><em>消费记录</em></h3>
	<div class="listbox">
        <form name="mform" method="post" action="{:U('index')}">
		<div class="search">
			<span>ID/会员账号：</span><input name="id" type="text" id="id" class="ipt" size="30" value="{$pageInfo['id']}" />
            <select name="status" id="status" class="sel">
                <option value="">所有状态</option>
                <option value="1" style="color: #f30;">成功</option>
                <option value="2" style="color: #080;">失败</option>
			</select>
            <script type="text/javascript">
			$(function(){
				$("#status").val("{$pageInfo['status']}");	
			});
			</script>
			<input type="submit" class="btn" value="搜索" />
        </div>
        </form>
        
        <form name="mform" method="post" action="{:U('doAction')}">
        <div class="toolbar" style="height:23px;">
			&nbsp;
		</div>
           <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
            <th>ID</th>
            <th>消费项目</th>
            <th>消费会员</th>
            <th>消费时间</th>
            <th width="30">状态</th>
        </tr>
        <volist name="list" id="vo">
        	<tr>
            	<td width="30" align="center">{$vo['id']}</td>
            	<td width="30%" align="center">{$vo['name']}</td>
            	<td width="10%" align="center">{$vo['username']}</td>
            	<td width="30%" align="center">{:date('Y-m-d H:i:s', $vo['add_time'])}</td>
            	<td class="manage"  align="center">
                	<eq name="vo['status']" value="1">
                    	成功
                    <else/>
                    	失败：{$vo['status_message']}
                    </eq>
                </td>
            </tr>
        </volist>
        </table>            
    	
		</form>
        <include file="Public:page" />
	</div>
<include file="Public:footer" />